cmake_minimum_required(VERSION 3.0)

project(conwaygameoflife)

set(CMAKE_BUILD_TYPE Debug)

set(CMAKE_C_FLAGS "-std=c99 -fdump-rtl-expand")

set(SDL2_DIR "F:/mingw64/x86_64-w64-mingw32/include")

find_package(SDL2 REQUIRED)

include_directories(${SDL2_INCLUDE_DIR})

add_executable(conwaygameoflife main.c display.c data.c)

target_link_libraries(
        conwaygameoflife
        ${SDL2_LIBRARIES}
        )

